#include "SimpleLpFilter.h"

SimpleLpFilter::SimpleLpFilter()
{
}

SimpleLpFilter::~SimpleLpFilter()
{
}

void SimpleLpFilter::transform (ssi_size_t sample_number_delta,
				ssi_stream &stream_in,
				ssi_stream &stream_out,
				ssi_size_t xtra_stream_in_num ,
				ssi_stream xtra_stream_in[] ){

					ssi_real_t *ptr_in = ssi_pcast (ssi_real_t, stream_in.ptr);
					ssi_real_t *ptr_out = ssi_pcast (ssi_real_t, stream_out.ptr);
					for (ssi_size_t i = 0; i < stream_in.dim * stream_in.num; i++) {
						*ptr_out++ = 1.0f - *ptr_in++;
					}
}



ssi_size_t SimpleLpFilter::getSampleDimensionOut (ssi_size_t sample_dimension_in){
return sample_dimension_in;

}

ssi_size_t SimpleLpFilter::getSampleBytesOut (ssi_size_t sample_bytes_in){

	SSI_ASSERT (sample_bytes_in == sizeof (ssi_real_t));
	return sample_bytes_in;
}